package com.example.viewpager2demo

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment

class MainForceFragment : Fragment() {
    companion object {
        fun newInstance(): MainForceFragment {
            return MainForceFragment()
        }
    }

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return inflater.inflate(R.layout.fragment_main_force, container, false)
    }

    fun updateData(newData: Any) {
        // 在这里更新数据
    }
} 